// import 'dart:ffi';

// import 'package:flutter/material.dart';

// class BuildDifficutyLevel extends StatefulWidget {
//   const BuildDifficutyLevel({Key key}) : super(key: key);


//   @override
//   _BuildDifficutyLevelState createState() => _BuildDifficutyLevelState();
// }

// class _BuildDifficutyLevelState extends State<BuildDifficutyLevel> {

//   @override
//   Widget build(BuildContext context) {
//     return Row(
//       children: ExerciseType.values.map((type) => {
//         final name=getExerciseName(type);
//         final fontWeight=selectedType==type?FontWeight.bold:FontWeight.normal;
//         final fontSize=selectedType==type?20:16;
//         return Expanded(
//           child:Center(
//             child:GestureDetector(
//               behavior:HitTestBehavior.Opaque,
//               onTap:() =>setState(() {
//                 selectedType=type;
//               }),
//               child:Text(name,style:TextStyle(
//                 fontWeight:FontWeight,fontSize:fontSize,

//               ),),
//             ),
//           ),
//         );
//       }),
//     );
//   }
// }
